// The Vue build version to load with the `import` command (runtime-only or
// standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App.js';
import VueRouter from 'vue-router';
import VueResouce from 'vue-resource';

import goods from './components/goods/goods';
import ratings from './components/ratings/ratings';
import seller from './components/seller/seller';
import './common/stylus/index.styl';
Vue.config.productionTip = false;
Vue.use(VueRouter);
Vue.use(VueResouce);
/* eslint-disable no-new */
const routes = [{
  path: '/goods',
  component: goods
}, {
  path: '/ratings',
  component: ratings
}, {
  path: '/seller',
  component: seller
}];
const router = new VueRouter({
  routes,
  linkActiveClass: 'active'
});
const app = new Vue({
  el: '#app',
  router,
  render: (h) => <App />
});
/*.$mount('#app')*/
router.push({
  path: '/goods'
});
